* STATA command file generated by EUGene  3.20 to read data file
* "C:\Program Files\EUGene\dyad_year_origonly.out"
* To execute this command file: 
*    1) Run STATA,
*    2) "cd" to directory "C:\Program Files\EUGene\",
*    3) enter command "do dyad_year_origonly.out.do".

* Number of observations in this data set: 805239

* Data set specifications:
*   Base Format: Non-directed Dyad
*   Time Span: 1816 to 2008
*   Selected Subset: All dyads included)
*   Sampling: None (100% of available data written to file)
*   Variables included:
*        ccode1	ccode2	year	cwongo	cwongonm	cwmid	cwmidnm	cwdynm	cwhost1	cwhost2	cwkeynum	cwjoany	cwjomid	cwfatald	mzongo	mzongonm	mzmid	mzmidnm	mzhost1	mzhost2	mzkeynum	mzjoany	mzjomid	mzfatald
*   Selected settings for variables with multiple output options:
*        Peace years calculated without Werner peace year adjustment
*       Dispute characteristics:
*        When two or more disputes occur in a year, data is from the highest intensity dispute
*        Disputes marked for originators only
*        All dyad-years with an ongoing MID dropped
*        Ongoing dispute years not considered new initiations
*        Joiner Dyads included

* Note:  EUGene draws on datasets originally published elsewhere by other scholars.  When 
* presenting analysis using data generated by EUGene, please cite the original data sources 
* as well as EUGene (see EUGene documentation, Appendix D) 
*
* Bibliography for this data set:
* Jones, Daniel M., Stuart A. Bremer and J. David Singer 1996.  "Militarized Interstate Disputes, 1816-1992: Rationale, Coding Rules, and Empirical Patterns."   	Conflict Management and Peace Science 15(2); 163:213.
* Maoz, Zeev.  1999.  "Dyadic Militarized Interstate Disputes, version 1.1."  Available at ftp://spirit.tau.ac.il/zeevmaoz/dyadmid.doc

#delimit ;
clear;
set memory 85040k;
infile int ccode1 int ccode2 int year int cwongo int cwongonm int cwmid int cwmidnm int cwdynm int cwhost1 int cwhost2 int cwkeynum byte cwjoany byte cwjomid int cwfatald int mzongo int mzongonm int mzmid int mzmidnm int mzhost1 int mzhost2 int mzkeynum byte mzjoany byte mzjomid int mzfatald  using "dyad_year_origonly.out";

* The next command drops the case that was read 
*  if the user included a line of variable names;

drop if missing(ccode1) | missing(year);

* Interpret missing values; 
mvdecode ccode1 ccode2 year cwongo cwongonm cwmid cwmidnm cwdynm cwhost1 cwhost2 cwkeynum cwjoany cwjomid cwfatald mzongo mzongonm mzmid mzmidnm mzhost1 mzhost2 mzkeynum mzjoany mzjomid mzfatald , mv(-9);

* Variable labels where available (see EUGeneDocumentation.doc for full information); 
label variable ccode1 "COW CCode Num for state 1";
label variable ccode2 "COW CCode Num for state 2";
label variable year "Year of observation";
label variable cwongo "A MID was ongoing at the beginning of this year, COW MID data";
label variable cwongonm "Num of the MID that was ongoing at the beginning of the year, if any";
label variable cwmid "MID Onset:  A MID occurred betw cc1 and cc2 in year (0=no, 1=yes).  ";
label variable cwmidnm "Num of the new MID that began in this year, if any;  marks dispute ONSET";
label variable cwdynm "Dyadic MID number (new number for each dyad-episode within each MID)";
label variable cwhost1 "Relevant hostility level reached by cc1 in a MID vs. cc2 in this year";
label variable cwhost2 "Relevant hostility level reached by cc2 in a MID vs. cc1 in this year";
label variable cwkeynum "Key MID number: Num of MID for which other MID variables are reported.  ";
label variable cwjoany "In this dyad, in any MID in this year, one of the states was a latecomer";
label variable cwjomid "One of the states was a joiner in MID Num in cwkeynum in this dyad-year, cow dat";
label variable cwfatald "Overall dispute fatality level (cow data)";
label variable mzongo "A MID was ongoing at beginning of year, Maoz dyadic data plus MID 3.0";
label variable mzongonm "Num of the MID that was ongoing at the beginning of the year, if any";
label variable mzmid "MID Onset: MID occurred betw cc1 and cc2 in year (0=no, 1=yes) (maoz data).";
label variable mzmidnm "Num of the new MID that began in this year, if any (0 if no MID was ongoing)";
label variable mzhost1 "Relevant hostility level reached by cc1 in a MID vs. cc2 in this year ";
label variable mzhost2 "Relevant hostility level reached by cc2 in a MID vs. cc1 in this year";
label variable mzkeynum "Key MID number: Num of MID for which other MID variables are reported.  ";
label variable mzjoany "In this dyad, in any MID in this year, one of the states was a latecomer";
label variable mzjomid "One of the states was a joiner in MID Num in cwkeynum in this dyad-year, mz dat";
label variable mzfatald "Overall dispute fatality level (maoz data)";

compress;
